package org.example.constant;

public enum BusinessEnum {

    OPERATION_SUCCESS(200,"操作成功"),

    OPERATION_FAIL(-1,"操作失败"),

    SERVICE_INNER_ERROR(9999,"服务内部异常"),

    UN_AUTHORIZED(401,"未授权"),

    ACCESS_DENY_FAIL(403,"权限不足，拒绝访问"),

    SECKILLACTIVITY_NOT_EXIST(1001,"秒杀活动不存在"),

    ;

    BusinessEnum(Integer code, String desc){
        this.code = code;
        this.desc = desc;
    }

    private Integer code;

    private String desc;

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }



}
